cmake_minimum_required(VERSION 3.10)
project(ecam-handleCall)
#add_compile_options(-g -Wno-unused-result -Wsign-compare -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -pipe  -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -fwrapv -Wall)
add_compile_options(-g -Xlinker -export-dynamic)
#add_compile_options( -Wno-unused-result -Wsign-compare  -DNDEBUG -g -fwrapv -O3 -Wall)
find_package(Python3 COMPONENTS Development REQUIRED)
add_executable(${PROJECT_NAME} src/main.c)

target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC
	/usr/local/include/python3.9
)

target_link_directories(${PROJECT_NAME} PUBLIC
	/usr/local/lib/python3.9/config-3.9-x86_64-linux-gnu
)

target_link_libraries(${PROJECT_NAME} PUBLIC
  pthread
  dl  
  util 
  rt
  crypt
  m 
  /usr/local/lib/python3.9/config-3.9-x86_64-linux-gnu/libpython3.9.a
)
